<?php

namespace app\common\enum;

class BusinessStatus
{
    const SUCCESS = 0;
    const FAIL = 1;

    public static function getDescription($value): string
    {
        $map = [
            self::SUCCESS => '成功',
            self::FAIL => '失败',
        ];
        return $map[$value];
    }
}